home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 April: Mac OS SDK / Dev.CD Apr 99 SDK1.toast / Development Kits / Thread Manager / Thread Manager 2.1.1d1+ / ThreadedSort / Sprocket / Interfaces / DialogWindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-28  |  1.1 KB  |  56 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        DialogWindow.h
  3.  
  4.     Contains:    Interfaces of a base class for Modeless Dialogs
  5.                 
  6.     Written by: Dave Falkenburg
  7.  
  8.     Copyright:    © 1993-94 by Dave Falkenburg, all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.     
  12.          <3>     11/8/94    DRF        We have better menu handling methods, so use them instead of the
  13.                                     old “DoEditMenu” method.
  14.          <2>     10/17/94    DRF        Made ItemHit a pure virtual method.
  15.  */
  16.  
  17. #ifndef        _DIALOGWINDOW_
  18. #define        _DIALOGWINDOW_
  19.  
  20. #ifndef        _WINDOW_
  21. #include    "Window.h"
  22. #endif
  23.  
  24. #ifndef        __DIALOGS__
  25. #include    <Dialogs.h>
  26. #endif
  27.  
  28. typedef    short    DialogTemplateID;
  29. typedef    short    DialogItemID;
  30.  
  31.  
  32. class    TDialogWindow    :    public    TWindow
  33.     {
  34. private:
  35.     DialogTemplateID    fTemplateID;
  36.     
  37. public:
  38.                         TDialogWindow(DialogTemplateID theDialogTemplate);
  39.     
  40.     virtual    Boolean        EventFilter(EventRecord *theEvent);
  41.  
  42.     virtual WindowPtr    MakeNewWindow(WindowPtr behindWindow);
  43.  
  44.     virtual void        Activate(Boolean activating);
  45.     virtual void        Draw(void);
  46.     virtual void        Click(EventRecord *anEvent);
  47.  
  48.     virtual void        DoMenuSelection(short menu, short item);
  49.     
  50. //    New methods that MUST be overridden:
  51.  
  52.     virtual    void        ItemHit(short theItem) = 0;
  53.     };
  54.  
  55. #endif
  56.